package edu.suda.xsap.service;

import edu.suda.xsap.dto.MemberCardDto;
import edu.suda.xsap.dto.MemberDto;
import edu.suda.xsap.dto.MemberWithCardsDto;
import edu.suda.xsap.entity.ID;
import edu.suda.xsap.entity.Member;
import com.github.pagehelper.PageInfo;
import edu.suda.xsap.entity.MemberCard;

import java.util.List;

public interface MemberService {

    Long addMember(MemberDto memberDto);
    Long bindCard(Long memberId, MemberCardDto memberCardDto);
    void delete(Long memberId);
    PageInfo<MemberWithCardsDto> findAll(int page, int size);
    Member findById(Long id);
    //    List<MemberDto> findAll();

}
